package com.yangtzeu.jwc.businessservice.impl;

import com.yangtzeu.jwc.businessservice.BusinessHttpCallBack;
import com.yangtzeu.jwc.dao.JwcDao;
import com.yangtzeu.jwc.dao.impl.JwcDaoImpl;

public class JwcServiceImpl {

    JwcDao jwcDaoImpl = JwcDaoImpl.getInstance();
    private static JwcServiceImpl serviceImpl;

    private JwcServiceImpl() {
    }

    ;

    public static JwcServiceImpl getInstance() {
        if (serviceImpl == null) {
            serviceImpl = new JwcServiceImpl();
        }
        return serviceImpl;
    }

    public void getIndex(BusinessHttpCallBack callBack) {
        jwcDaoImpl.getIndex(callBack);
    }

    public void getContentHtml(String path, BusinessHttpCallBack callBack) {
        jwcDaoImpl.getContentHtml(path, callBack);
    }
}